package Test.StirngTest;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author kirito
 * @Date 2023/12/25 15:16
 * @PackageName:Test.StirngTest
 * @ClassName: Test02
 * @Description:
 * @Version 1.0
 */
public class Test02 {
    public static void main(String[] args) {
        TT tt = new TT();
//        System.out.println(tt.getStudent().getAge());  //空指针
        String s1 = "abd";
        String s2 = "wqe";
        String s3 = "";
        String s4 = "fsf";
        String s5 = "xzc";
        List<String> list = new ArrayList<>();
        list.add(s1);
//        list.add(s2);
//        list.add(s3);
//        list.add(s4);
//        list.add(s5);
        String join = StringUtils.join(list, ",");
//        String qwe = ";";
//        String s = StringUtils.joinWith(qwe, s1, s2,s3,s4);
//        System.out.println(s);
        System.out.println(join);
//        StringJoiner sj = new StringJoiner(",","{","}");
//        for (String str : list) {
//            sj.add(str);
//        }
//        System.out.println(sj);

    }
}
